import http from "@/api";


export const getSysApproveListApi = async (data) =>
    await http.post("approve/page/list", data);

// 草稿箱
export const getDraftListApi = async (data) =>
    await http.post("draft/page/list", data);

// 草稿箱详情
export const getDraftDetailApi = async (id) =>
    await http.get(`draft/get/${id}`);

export const approvePass = async (data) =>
    await http.post("approve/pass", data);


export const approveReject = async (data) =>
    await http.post("approve/reject", data);

export const getApproveDetailApi = async (id) =>
    await http.get(`approve/get/${id}`);

export const deleteDraft = async (data) =>
    await http.post("draft/delete", data);


export const getMailboxListApi = async (data) =>
    await http.post("mailbox/page/list", data);

export const deleteMailboxApi = async (data) =>
    await http.post("mailbox/delete", data);

export const getMailboxDetailApi = async (id) =>
    await http.get(`mailbox/get/${id}`);

export const mailboxReplyInsertApi = async (data) =>
    await http.post("mail/reply/insert", data);

export const getMailReplyApi = async (id) =>
  await http.get(`mail/reply/get/${id}`);

export const updateReplyApi = async (data) =>
  await http.post("mail/reply/update", data);


export const deleteReplyApi = async (data) =>
  await http.post("mail/reply/delete", data);

